package com.melesta.engine;

import android.util.Log;

public class NativeEngineCallbacks
{
  private static final String TAG = "NativeEngineCallbacks";
  private static NativeEngineCallbacks mThis;

  static void create()
  {
    if (mThis != null)
    {
      Log.d("NativeEngineCallbacks", "allready created");
      return;
    }
    mThis = new NativeEngineCallbacks();
    onCreate(EngineApp.getApp().getPackageName());
  }

  static void destroy()
  {
    if (mThis == null)
    {
      Log.d("NativeEngineCallbacks", "allready destroyed");
      return;
    }
    mThis = null;
    onDestroy();
  }

  private static native String getBackupName();

  static String getGameBackupName()
  {
    return getBackupName();
  }

  public static String getGamePromocode()
  {
    return getPromocode();
  }

  private static native String getPromocode();

  private static native void onCreate(String paramString);

  private static native void onDestroy();

  private static native void onPromocodeChecked(int paramInt);

  static void promocodeChecked(int paramInt)
  {
    onPromocodeChecked(paramInt);
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.melesta.engine.NativeEngineCallbacks
 * JD-Core Version:    0.6.2
 */